Component({

  properties: {
    tipsFlag: {
      type: Boolean,
      value: false
    },
  },
  data: {
    agreeFlag: true,
    pictureUrl: '/image/'
  },
  methods: {
    dontshow: function () {
      this.setData({
        agreeFlag: !this.data.agreeFlag
      })
      
    },
    wait(){
      this.setData({
        tipsFlag:false
      })
    },
    confirm(){
      if(this.data.agreeFlag){
        wx.setStorageSync('agreeShow', true)
      }
      this.setData({
        tipsFlag:false
      })
      this.triggerEvent('tipConfirm',true)
    }
  }
});
